package org.example.convert;

import org.example.model.UserInfo;
import org.example.pojo.UserInfoRegisterRequest;

public class BeanConvert {
    public static UserInfo convert(UserInfoRegisterRequest userInfoRegisterRequest) {
        UserInfo userInfo = new UserInfo();
        userInfo.setUserName(userInfoRegisterRequest.getUserName());
        userInfo.setPassword(userInfoRegisterRequest.getPassword());
        userInfo.setEmail(userInfoRegisterRequest.getEmail());
        userInfo.setGithubUrl(userInfoRegisterRequest.getGithubUrl());
        return userInfo;
    }
}
